import yaml
from BK_login.utils.getPath import get_path


def read_yaml(filename):
    with open(get_path(filename), 'r', encoding='utf-8') as f:
        return yaml.safe_load(f)


if __name__ == '__main__':
    res = read_yaml("login.yaml")["loginInfors"]
    print(type(res))
    print(res)
